package com.teen9g.infoplatformserver.service;

import com.teen9g.dto.ChatMessageDTO;
import com.teen9g.entity.ChatMessage;
import com.teen9g.vo.ChatMessageSideVO;

import java.util.List;

public interface ChatService {
    List<ChatMessage> getChatHistory(Integer userId1, Integer userId2);

    ChatMessage saveMessage(ChatMessageDTO message);

    List<ChatMessageSideVO> getChatHistoryList(Integer userId);

    String deleteChat(Integer userId1, Integer userId2);

    List<ChatMessageSideVO> getChatHistoryListBySearch(Integer userId, String content);

    String sendMessage(ChatMessageDTO chatMessageDTO);

    List<ChatMessage> getChatHistoryByChatId(String chatId);

    List<String> getChatIds(Integer userId);

    ChatMessage saveMessageWithAI(ChatMessageDTO message);

    List<ChatMessage> getAIChatHistoryByChatId(String chatId);

    void saveAIMessage(ChatMessage aiMessage);

    String updateReadStatus(List<Integer> messageIds);
}
